1<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>企业综合管理运营系统平台</title>
	<link rel="stylesheet" type="text/css" href="css/admin_style.css" />
	<script src="js/jquery-1.4.4.min.js"></script>
	<script src="js/iframe.js"></script>
	<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>
	<script>
	var msg="${msg}";
		if(msg!=""){
			alert(msg);
		}
	</script>
</head>
<body class="right_body">
<form action="doc!${id>0?"update":"add" }" method="post" enctype="multipart/form-data">
	<input type="hidden" name="doc.docid" value="${doc.docid==null?0:doc.docid }" />
	<div class="body">
		<div class="top_subnav">企业综合管理运营系统平台 ＞客户文档信息编辑</div>
		<div class="title">
			<div class="title_info zs">
				客户文档资料录入
			</div>
		</div>
		<div>
			<div class="item">
				<span>文件上传：</span><input type="file" name="up" />
				<input type="hidden" name="doc.docname" value="${doc.docname }" />
				<s:fielderror></s:fielderror>
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>所属客户：</span>
				<s:select list="cuss" name="doc.cusid.cusid" listKey="cusid" listValue="cusname" value="doc.cusid.cusid"></s:select>
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>文档类型：</span>
				<s:radio list="{'公司资料','销售资料','公司合同','其他文件'}" name="doc.doctype" value="doc.doctype"></s:radio>
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>文档等级：</span>
				<s:radio list="{'保密','普通'}" name="doc.doclevel" value="doc.doclevel"></s:radio>
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>上传人员：</span><input type="text" value="${param.id>0?doc.empid.empname:user.empname }" readonly="readonly" size="50" />
				<input type="hidden" name="doc.empid.empid" value="${param.id>0?doc.empid.empid:user.empid }" />
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>上传时间：</span><input type="text" class="Wdate" name="doc.uptime" value="${doc.uptime }" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
			</div>
			<p class="line">
			</p>
			<div class="item">
				<span>备注：</span><textarea name="doc.cdesc" rows="6" cols="60">${doc.cdesc }</textarea>
			</div>
			<p class="line">
			</p>
			<div class="item">
				<input type="submit" class="button" value=""/>
			</div>
		</div>
		<div style="clear:both"></div>
			<p class="line">
			</p>
	</div>
</form>
</body>
</html>
